package com.hnit.web.Clients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@FeignClient(name = "AiAgent",path = "/api/vector")
public interface VectorStoreClient {

    @PostMapping("/add")
    ResponseEntity<Map<String, Object>> addJsonData(@RequestBody Map<String, Object> jsonData);

    @PostMapping("/batch")
    ResponseEntity<Map<String, Object>> addJsonDataBatch(@RequestBody List<Map<String, Object>> jsonDataList);

    @PostMapping("/text")
    ResponseEntity<Map<String, Object>> addTextData(@RequestBody Map<String, String> textData);

    @GetMapping("/health")
    ResponseEntity<Map<String, Object>> healthCheck();
}
